package com.zhudeshuai.zhudemolist.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.zhudeshuai.zhudemolist.R;

/**
 * @author zhudeshuai
 * @since 16/8/10
 */
public class MyViewHolder1 extends RecyclerView.ViewHolder {

    public MyViewHolder1(View itemView) {
        super(itemView);
    }


    public static class MyAdapter1 extends RecyclerView.Adapter<MyViewHolder1> {
        private Context mContext;

        public MyAdapter1(Context context) {
            mContext = context;
        }

        @Override
        public MyViewHolder1 onCreateViewHolder(ViewGroup parent, int viewType) {
            View inflate = LayoutInflater.from(mContext).inflate(R.layout.item_list, parent, false);
            return new MyViewHolder1(inflate);
        }

        @Override
        public void onBindViewHolder(MyViewHolder1 holder, int position) {

        }

        @Override
        public int getItemCount() {
            return 20;
        }
    }
}
